package GUI_Element;

import java.awt.*;

public abstract class Element implements Cloneable{

	public Shape shape=null;

	protected int type;
	public static final int PLACE = 1;
	public static final int TRANSITION = 2;
	public static final int ARCP2T = 3;
	public static final int ARCT2P = 4;
	
	public abstract void draw(Graphics2D g);
	
	protected float x1=0;
	protected float y1=0;

	public float getX1() { return x1; }
	public float getY1() { return y1; }
	public void setX1(float x1) { this.x1 = x1; }
	public void setY1(float y1) { this.y1 = y1;	}
	public int GetType() { return type; }
	public abstract Element Clone();
	
	protected boolean isSelected=false;
	protected boolean toBeDeleted=false;
	public void SetSelected(boolean b) { isSelected = b; }
	public void SetToBeDeleted(boolean b) { toBeDeleted = b; }
	public void SetPosition(float newx1, float newy1) {
		x1 = newx1;
		y1 = newy1;
	}
	
	
	protected static final Color SelectedColor = Color.RED;
	protected static final Color NormalColor = Color.BLACK;
	protected static final Color DeleteColor = Color.GRAY;

}
